import { Box } from "@chakra-ui/react";
import { Route } from "react-router-dom";
import Card from "./Card";
import Form from "./Form";

export function Main() {
    return <Box w="50%" mt="6rem" mx="auto" d="flex" justifyContent="center"  >
        <Route path="/home" component={Home} />
        <Route path="/form" component={Form} />
        <Route path="/card" component={Card} />
    </Box>
}
function Home() {
    return <Box>hello world</Box>
}